package com.cloud.pole.shop.biz.goods;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cloud.pole.common.biz.BaseBiz;
import com.cloud.pole.mapper.goods.ShopGoodsGroupRecommMapper;
import com.cloud.pole.shop.model.entity.goods.ShopGoodsGroupRecomm;

@Service
@Transactional(rollbackFor = Exception.class)
public class ShopGoodsGroupRecommBiz extends BaseBiz<ShopGoodsGroupRecommMapper, ShopGoodsGroupRecomm> {
	public List<ShopGoodsGroupRecomm> groupListOr(Integer shopId) {
		return mapper.getAllList(shopId);
	}

	public List<ShopGoodsGroupRecomm> selectByShopId(Integer shopId) {
		return mapper.getyAllByShopId(shopId);
	}

	public void addList(List<ShopGoodsGroupRecomm> shopGoodsGroupRecomm) {
		mapper.addShopIdList(shopGoodsGroupRecomm);
	}
	
	public ShopGoodsGroupRecomm selectByTermAll(ShopGoodsGroupRecomm shopGoodsGroupRecomm) {
		return mapper.selectByTermMa(shopGoodsGroupRecomm);
	}
	
	public void updateRecomm(ShopGoodsGroupRecomm shopGoodsGroupRecomm) {
		mapper.updateShopGroupRecomm(shopGoodsGroupRecomm);
	}
}
